import axios from '@/utils/request'
const base = '/userserver'

export function listUserRoles(userId) {
  return axios({
    url: `${base}/userRoles/user/` + userId,
    method: 'get'
  })
}

export function deleteUserRole(id) {
  return axios({
    url: `${base}/userRoles/` + id,
    method: 'delete'
  })
}
